# _*_ coding:utf-8 _*_
# @File  : logger.py
# @Time  : 2021-03-08 09:03
# @Author: zizle
import os
import datetime
from loguru import logger

# 当前进程
logger_filepath = f'debug/{datetime.datetime.today().strftime("%Y-%m-%d.%H%M%S")}_{os.getpid()}.log'
# logger.add('debug/{time}.log', rotation='00:00', retention='20 days')
logger.add(logger_filepath, rotation='00:00', retention='20 days')
